public class Computer {
    public String pingpai;
    public double jiage;
    public String yanse;
    public int pingmudaxiao;
    public void canshu(){
        System.out.println("电脑品牌："+this.pingpai+"\n价格："+this.jiage+"\n颜色："+this.yanse+"\n屏幕大小："+this.pingmudaxiao+"寸");
    }

    public static void main(String[] args) {
        Computer c=new Computer();
        c.pingpai="神舟";
        c.jiage=4000;
        c.yanse="黑";
        c.pingmudaxiao=14;
        c.canshu();
    }
}
